const File = require('./utils/operateFile');
const cut = require('./utils/cut');

// 裁剪后保存到本地
File.readFile('public/imageUrl.txt').then(res => {
  const arr = res.split(/[\s\n]/);
  for (let i = 0; i < arr.length; i++) {
    // console.log(arr[i]);
    cut({
      imgUrl: arr[i],
      w: 43.43,
      h: 60.50,
      x: 0.5366,
      y: 0.31,
      isPercent: true
    })
  }
});
